package com.yeyuanqi.service;


import com.github.pagehelper.PageInfo;
import com.yeyuanqi.model.domain.Comment;
import com.yeyuanqi.model.domain.CommentCount;
import com.yeyuanqi.vo.CountVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ICommentService {
    //获取文章评论
    public PageInfo<Comment> getComment(Integer aid,int page,int count);
    //用户发表评论
    public void pushComment(Comment comment);

    //获取文章评论
    public PageInfo<Comment> getAllComment(int page,int count);

    public void delCommentByAid(Integer articleId);
    //删除评论
    public void delCommentById(Integer Id);

    //查询文章的评论数量
    public CountVO selectCommentCount();
}
